﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Objects;
using System.Data.Objects.DataClasses;
using System.Data.EntityClient;
using System.Runtime.Serialization;

namespace PackagesInProcess
{
    public partial class tblPackage : EntityObject
    {
        private bool _checked = false;

        public bool Checked
        {
            get { return _checked; }
            set
            {
                _checked = value;
                OnPropertyChanged("Checked");
            }
        }
    }

    public partial class tblAddress : EntityObject
    {
        public string FullAddress
        {
            get
            {
                return Address1 +
                    ((Address2 == null) ? string.Empty : "\n" + Address2) +
                    ((Address3 == null) ? string.Empty : "\n" + Address3) +
                    ((City == null) ? string.Empty : "\n" + City) +
                    ((State == null) ? string.Empty : ", " + State) +
                    PostalCode;
            }
        }
    }
}
